import express from 'express';
import Ret, { RetCode } from '../../../bean/code/Ret';
const app = express();
import { urlEncode, excludeEmpty } from '../../../utils/index';
import { db, Sequelize } from '../../../dao/config/index';
import { converPage } from '../../../bean/page';
const Store = require("../../../dao/models/f_store")(db, Sequelize);

/**
 * 根据获取指定商品 暂时只有一款
 */
app.get("/getStoreInfo", async (req, res) => {
  const storeInfo = await Store.find(); 
  res.json(Ret(RetCode.SUCCESS).setData(storeInfo));
}) 

export default app;
 